package com.ypx.mapper;
import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ypx.bean.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 易鹏祥
* @description 针对表【employee(员工信息)】的数据库操作Mapper
* @createDate 2023-05-23 16:18:30
* @Entity com.ypx.bean.Employee
*/
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee findByUsername(@Param("username") String username);

//    List<Employee> list(@Param("page") Page<Employee> page, @Param("name") String name);

    int countByUsernameNotSelf(@Param("username") String username, @Param("id") Long id);

}




